<html>
	<body>
		<p>Hello! The time is now: <%= new java.util.Date() %></p>
		<p>Your Machine Address is: <%= request.getRemoteAddr()%></p>
		<p>Your User Agent is:</p>
		<% 
			String userAgent = request.getHeader("User-Agent");
			userAgent = userAgent.toLowerCase();
			out.println(userAgent + "<br />");
			if(userAgent.contains("iphone"))
			{
				out.println("You will be redirected to an iphone ready page.");
			}
			else
			{
				out.println("Show the normal page.");
			}
		%>
	</body>
</html>